﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_KhaiBaoThue : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CboPhuongThuc")]
        private ComboBox _CboPhuongThuc;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("CmdTimDoiTuong")]
        private Button _CmdTimDoiTuong;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label5")]
        private Label _Label5;
        [AccessedThroughProperty("Label6")]
        private Label _Label6;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("TxtDiaChiThue")]
        private TextBox _TxtDiaChiThue;
        [AccessedThroughProperty("TxtDienGiaiMatHang")]
        private TextBox _TxtDienGiaiMatHang;
        [AccessedThroughProperty("TxtKyHieu")]
        private TextBox _TxtKyHieu;
        [AccessedThroughProperty("TxtMaSoThue")]
        private TextBox _TxtMaSoThue;
        [AccessedThroughProperty("TxtNgayHoaDon")]
        private DateTimePicker _TxtNgayHoaDon;
        [AccessedThroughProperty("TxtSoHoaDon")]
        private TextBox _TxtSoHoaDon;
        [AccessedThroughProperty("TxtTenDoiTuongThue")]
        private TextBox _TxtTenDoiTuongThue;
        private IContainer components;
        private string mAction;
        private string mDiaChi;
        private string mDienGiaiMatHang;
        private bool mEnabledControl;
        private string mKhoaDoiTuong;
        private string mKhoaDoiTuongThue;
        private string mKyHieu;
        private string mMaSoThue;
        private string mNgayHoaDon;
        private string mPhuongThuc;
        private string mSoHoaDon;
        private string mTenDoiTuong;
        private string mValueReturn;
        private clsKhaiBaoThue objKhaiBaoThue;

        public Frm_KhaiBaoThue()
        {
            base.Load += new EventHandler(this.Frm_KhaiBaoThue_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.mAction = "";
            this.objKhaiBaoThue = new clsKhaiBaoThue();
            this.InitializeComponent();
        }

        private void CboPhuongThuc_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhuongThuc.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                this.EnabledControl = false;
            }
            else
            {
                this.EnabledControl = true;
            }
        }

        public bool CheckIvalid()
        {
            if (Operators.ConditionalCompareObjectEqual(this.CboPhuongThuc.SelectedValue, "", false))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập phương thức!", ""));
                this.CboPhuongThuc.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.TxtKyHieu.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("K\x00fd hiệu kh\x00f4ng được để trống! Bạn vui l\x00f2ng nhập k\x00fd hiệu.", ""));
                this.TxtKyHieu.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.TxtSoHoaDon.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập th\x00f4ng tin số h\x00f3a đơn!", ""));
                this.TxtSoHoaDon.Focus();
                return false;
            }
            if (!LVYModule.CheckDateLock(LVYModule.Date2Char(this.TxtNgayHoaDon.Text)))
            {
                return false;
            }
            if (this.TxtTenDoiTuongThue.Text.ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập th\x00f4ng tin đối tượng thuế!", ""));
                this.TxtTenDoiTuongThue.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.TxtMaSoThue.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập th\x00f4ng tin m\x00e3 số thuế!", ""));
                this.TxtMaSoThue.Focus();
                return false;
            }
            if (LVYModule.ReturnIfNull(this.TxtDienGiaiMatHang.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn vui l\x00f2ng nhập diễn giải mặt h\x00e0ng!", ""));
                this.TxtDienGiaiMatHang.Focus();
                return false;
            }
            return true;
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.mAction = "";
            this.mValueReturn = "";
            this.Close();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            if (this.CheckIvalid())
            {
                this.mValueReturn = LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.CboPhuongThuc.SelectedValue), "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "|" + LVYModule.ReturnIfNull(this.TxtKyHieu.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "|" + LVYModule.ReturnIfNull(this.TxtSoHoaDon.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "|" + LVYModule.ReturnIfNull(this.TxtNgayHoaDon.Value, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "|" + LVYModule.ReturnIfNull(this.TxtTenDoiTuongThue.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "|" + LVYModule.ReturnIfNull(this.TxtMaSoThue.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "|" + LVYModule.ReturnIfNull(this.TxtDiaChiThue.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "| " + LVYModule.ReturnIfNull(this.TxtDienGiaiMatHang.Text, "", modGeneral.TypeOfValue.Nothing).ToString().Trim() + "|" + LVYModule.ReturnIfNull(RuntimeHelpers.GetObjectValue(this.TxtTenDoiTuongThue.Tag), "", modGeneral.TypeOfValue.Nothing).ToString().Trim();
                this.Close();
            }
        }

        private void CmdTimDoiTuong_Click(object sender, EventArgs e)
        {
            string expression = SearchModule.SearchDoiTuong("", "", "");
            if (expression != "")
            {
                object instance = Strings.Split(expression, "|", -1, CompareMethod.Binary);
                clsDMDoiTuong tuong = new clsDMDoiTuong();
                tuong.Load(Conversions.ToString(NewLateBinding.LateIndexGet(instance, new object[] { 0 }, null)));
                if (modGeneral.H_LANGUAGE.Trim().ToUpper() == "VIET")
                {
                    this.TxtTenDoiTuongThue.Text = tuong.TenViet;
                }
                else
                {
                    this.TxtTenDoiTuongThue.Text = tuong.TenViet;
                }
                this.TxtMaSoThue.Text = tuong.MaSoThue;
                this.TxtDiaChiThue.Text = tuong.DiaChi;
            }
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_KhaiBaoThue_Load(object sender, EventArgs e)
        {
            this.EnabledControl = false;
            BuildComboModule.BuildCombo(this.CboPhuongThuc, modGeneral.ListDanhMuc.HangMucBaoCaoThue, false, "LoaiPhatSinh = 'MV'", "");
            if (Operators.ConditionalCompareObjectNotEqual(this.PhuongThuc, "", false))
            {
                this.CboPhuongThuc.SelectedValue = RuntimeHelpers.GetObjectValue(this.PhuongThuc);
            }
            else
            {
                this.CboPhuongThuc.SelectedIndex = 0;
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_KhaiBaoThue));
            this.Label3 = new Label();
            this.GroupBox1 = new GroupBox();
            this.CboPhuongThuc = new ComboBox();
            this.Label6 = new Label();
            this.Label13 = new Label();
            this.TxtNgayHoaDon = new DateTimePicker();
            this.Label5 = new Label();
            this.TxtSoHoaDon = new TextBox();
            this.Label4 = new Label();
            this.TxtKyHieu = new TextBox();
            this.Label7 = new Label();
            this.TxtDienGiaiMatHang = new TextBox();
            this.TxtDiaChiThue = new TextBox();
            this.Label2 = new Label();
            this.TxtMaSoThue = new TextBox();
            this.CmdTimDoiTuong = new Button();
            this.Label1 = new Label();
            this.TxtTenDoiTuongThue = new TextBox();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.GroupBox1.SuspendLayout();
            this.SuspendLayout();
            this.Label3.AutoSize = true;
            Point point = new Point(11, 0xd7);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            Size size = new Size(40, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 6;
            this.Label3.Text = "Địa chỉ";
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.CboPhuongThuc);
            this.GroupBox1.Controls.Add(this.Label6);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.TxtNgayHoaDon);
            this.GroupBox1.Controls.Add(this.Label5);
            this.GroupBox1.Controls.Add(this.TxtSoHoaDon);
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.TxtKyHieu);
            this.GroupBox1.Controls.Add(this.Label7);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Controls.Add(this.TxtDienGiaiMatHang);
            this.GroupBox1.Controls.Add(this.TxtDiaChiThue);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.TxtMaSoThue);
            this.GroupBox1.Controls.Add(this.CmdTimDoiTuong);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.TxtTenDoiTuongThue);
            point = new Point(5, 7);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x21f, 0x119);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 7;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "Đối tượng thuế";
            this.CboPhuongThuc.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboPhuongThuc.FormattingEnabled = true;
            point = new Point(0x71, 0x13);
            this.CboPhuongThuc.Location = point;
            this.CboPhuongThuc.Name = "CboPhuongThuc";
            size = new Size(0x1a6, 0x15);
            this.CboPhuongThuc.Size = size;
            this.CboPhuongThuc.TabIndex = 0x3a;
            this.Label6.AutoSize = true;
            point = new Point(8, 0x16);
            this.Label6.Location = point;
            this.Label6.Name = "Label6";
            size = new Size(0x5b, 13);
            this.Label6.Size = size;
            this.Label6.TabIndex = 0x3b;
            this.Label6.Text = "Chứng từ sử dụng";
            this.Label6.TextAlign = ContentAlignment.TopRight;
            this.Label13.AutoSize = true;
            point = new Point(11, 0x70);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x4d, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 0x25;
            this.Label13.Text = "Ng\x00e0y chứng từ";
            this.TxtNgayHoaDon.Format = DateTimePickerFormat.Short;
            point = new Point(0x72, 0x70);
            this.TxtNgayHoaDon.Location = point;
            this.TxtNgayHoaDon.Name = "TxtNgayHoaDon";
            size = new Size(0x87, 20);
            this.TxtNgayHoaDon.Size = size;
            this.TxtNgayHoaDon.TabIndex = 0x24;
            this.Label5.AutoSize = true;
            point = new Point(11, 0x53);
            this.Label5.Location = point;
            this.Label5.Name = "Label5";
            size = new Size(0x41, 13);
            this.Label5.Size = size;
            this.Label5.TabIndex = 10;
            this.Label5.Text = "Số chứng từ";
            point = new Point(0x72, 80);
            this.TxtSoHoaDon.Location = point;
            this.TxtSoHoaDon.Name = "TxtSoHoaDon";
            size = new Size(0x88, 20);
            this.TxtSoHoaDon.Size = size;
            this.TxtSoHoaDon.TabIndex = 9;
            this.Label4.AutoSize = true;
            point = new Point(11, 0x36);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x2a, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 8;
            this.Label4.Text = "K\x00fd hiệu";
            this.TxtKyHieu.CharacterCasing = CharacterCasing.Upper;
            point = new Point(0x72, 0x33);
            this.TxtKyHieu.Location = point;
            this.TxtKyHieu.Name = "TxtKyHieu";
            size = new Size(0x88, 20);
            this.TxtKyHieu.Size = size;
            this.TxtKyHieu.TabIndex = 7;
            this.Label7.AutoSize = true;
            point = new Point(10, 0xf8);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x5f, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 6;
            this.Label7.Text = "Diễn giải mặt h\x00e0ng";
            point = new Point(0x71, 0xf5);
            this.TxtDienGiaiMatHang.Location = point;
            this.TxtDienGiaiMatHang.Name = "TxtDienGiaiMatHang";
            size = new Size(0x1a6, 20);
            this.TxtDienGiaiMatHang.Size = size;
            this.TxtDienGiaiMatHang.TabIndex = 5;
            point = new Point(0x72, 0xd4);
            this.TxtDiaChiThue.Location = point;
            this.TxtDiaChiThue.Name = "TxtDiaChiThue";
            size = new Size(0x1a6, 20);
            this.TxtDiaChiThue.Size = size;
            this.TxtDiaChiThue.TabIndex = 5;
            this.Label2.AutoSize = true;
            point = new Point(11, 180);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            size = new Size(60, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 4;
            this.Label2.Text = "M\x00e3 số thuế";
            point = new Point(0x72, 0xb1);
            this.TxtMaSoThue.Location = point;
            this.TxtMaSoThue.Name = "TxtMaSoThue";
            size = new Size(0x88, 20);
            this.TxtMaSoThue.Size = size;
            this.TxtMaSoThue.TabIndex = 3;
            this.CmdTimDoiTuong.FlatStyle = FlatStyle.System;
            point = new Point(0x201, 0x90);
            this.CmdTimDoiTuong.Location = point;
            this.CmdTimDoiTuong.Name = "CmdTimDoiTuong";
            size = new Size(0x16, 0x16);
            this.CmdTimDoiTuong.Size = size;
            this.CmdTimDoiTuong.TabIndex = 2;
            this.CmdTimDoiTuong.Text = "...";
            this.CmdTimDoiTuong.UseVisualStyleBackColor = true;
            this.Label1.AutoSize = true;
            point = new Point(10, 0x94);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x62, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 1;
            this.Label1.Text = "T\x00ean đối tượng thuế";
            point = new Point(0x71, 0x91);
            this.TxtTenDoiTuongThue.Location = point;
            this.TxtTenDoiTuongThue.Name = "TxtTenDoiTuongThue";
            size = new Size(0x18f, 20);
            this.TxtTenDoiTuongThue.Size = size;
            this.TxtTenDoiTuongThue.TabIndex = 0;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x1d5, 0x126);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 9;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x182, 0x126);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 8;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x228, 0x147);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.GroupBox1);
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.KeyPreview = true;
            this.Name = "Frm_KhaiBaoThue";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "THONG TIN DOI TUONG THUE";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            this.ResumeLayout(false);
        }

        public string Action
        {
            get
            {
                return this.mAction;
            }
            set
            {
                this.mAction = value;
            }
        }

        internal virtual ComboBox CboPhuongThuc
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboPhuongThuc;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CboPhuongThuc_SelectedIndexChanged);
                if (this._CboPhuongThuc != null)
                {
                    this._CboPhuongThuc.SelectedIndexChanged -= handler;
                }
                this._CboPhuongThuc = value;
                if (this._CboPhuongThuc != null)
                {
                    this._CboPhuongThuc.SelectedIndexChanged += handler;
                }
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual Button CmdTimDoiTuong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdTimDoiTuong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdTimDoiTuong_Click);
                if (this._CmdTimDoiTuong != null)
                {
                    this._CmdTimDoiTuong.Click -= handler;
                }
                this._CmdTimDoiTuong = value;
                if (this._CmdTimDoiTuong != null)
                {
                    this._CmdTimDoiTuong.Click += handler;
                }
            }
        }

        public object DiaChi
        {
            get
            {
                return this.mDiaChi;
            }
            set
            {
                this.mDiaChi = Conversions.ToString(value);
                this.TxtDiaChiThue.Text = Conversions.ToString(value);
            }
        }

        public object DienGiaiMatHang
        {
            get
            {
                return this.mDienGiaiMatHang;
            }
            set
            {
                this.mDienGiaiMatHang = Conversions.ToString(value);
                this.TxtDienGiaiMatHang.Text = Conversions.ToString(value);
            }
        }

        public bool EnabledControl
        {
            get
            {
                return this.mEnabledControl;
            }
            set
            {
                this.mEnabledControl = value;
                this.TxtKyHieu.Enabled = value;
                this.TxtSoHoaDon.Enabled = value;
                this.TxtNgayHoaDon.Enabled = value;
                this.TxtTenDoiTuongThue.Enabled = value;
                this.CmdTimDoiTuong.Enabled = value;
                this.TxtMaSoThue.Enabled = value;
                this.TxtDiaChiThue.Enabled = value;
                this.TxtDienGiaiMatHang.Enabled = value;
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        public object KhoaDoiTuongThue
        {
            get
            {
                return this.mKhoaDoiTuongThue;
            }
            set
            {
                this.mKhoaDoiTuongThue = Conversions.ToString(value);
            }
        }

        public object KyHieu
        {
            get
            {
                return this.mKyHieu;
            }
            set
            {
                this.mKyHieu = Conversions.ToString(value);
                this.TxtKyHieu.Text = Conversions.ToString(value);
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label5
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label5;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label5 = value;
            }
        }

        internal virtual Label Label6
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label6;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label6 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        public string MaSoThue
        {
            get
            {
                return this.mMaSoThue;
            }
            set
            {
                this.mMaSoThue = value;
                this.TxtMaSoThue.Text = value;
            }
        }

        public object NgayHoaDon
        {
            get
            {
                return this.mNgayHoaDon;
            }
            set
            {
                this.mNgayHoaDon = Conversions.ToString(value);
                this.TxtNgayHoaDon.Text = Conversions.ToString(value);
            }
        }

        public object PhuongThuc
        {
            get
            {
                return this.mPhuongThuc;
            }
            set
            {
                this.mPhuongThuc = Conversions.ToString(value);
                this.CboPhuongThuc.SelectedValue = RuntimeHelpers.GetObjectValue(value);
            }
        }

        public object SoHoaDon
        {
            get
            {
                return this.mSoHoaDon;
            }
            set
            {
                this.mSoHoaDon = Conversions.ToString(value);
                this.TxtSoHoaDon.Text = Conversions.ToString(value);
            }
        }

        public string TenDoiTuong
        {
            get
            {
                return this.mTenDoiTuong;
            }
            set
            {
                this.mTenDoiTuong = value;
                this.TxtTenDoiTuongThue.Text = value;
            }
        }

        internal virtual TextBox TxtDiaChiThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDiaChiThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDiaChiThue = value;
            }
        }

        internal virtual TextBox TxtDienGiaiMatHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiaiMatHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiaiMatHang = value;
            }
        }

        internal virtual TextBox TxtKyHieu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtKyHieu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtKyHieu = value;
            }
        }

        internal virtual TextBox TxtMaSoThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMaSoThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtMaSoThue = value;
            }
        }

        internal virtual DateTimePicker TxtNgayHoaDon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayHoaDon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayHoaDon = value;
            }
        }

        internal virtual TextBox TxtSoHoaDon
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoHoaDon;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoHoaDon = value;
            }
        }

        internal virtual TextBox TxtTenDoiTuongThue
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenDoiTuongThue;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenDoiTuongThue = value;
            }
        }

        public string ValueReturn
        {
            get
            {
                return this.mValueReturn;
            }
            set
            {
                this.mValueReturn = value;
            }
        }
    }
}

